separate js and css about osx to different file