Php Function Within Function Javascript Mozilla Developer Jsa