fix(js): Separated elgg_load_js() and elgg_define_js().

Refs #6603, #6497, #5090.