(#32) Clean up config load javascript

This commit cleans up some of the javascript code used in the manage
view. Instead of having the IDs within the functions, they are defined
at the beginning of the file to make future editing easier.