improve code + js in files