finish initial implementation of JS files