Trying to improve the javascript structure