add a wrapper for each Javascript file to avoid variable conflict