For #97

Had several little issues with merging global and script-specific box info so I just created a standard function to handle it. Things seem to be working better.

Also I had to add the width in as JS variables for AJAX calls since they are script-dependent now.