consolodated javascript and general functions into global files (instead of gadget_* or wepa_*)
Signed-off-by:Matthew Scaperoth <mscapero@gwu.edu>