Php Function Within Function Javascript Practice Problems