Optimize .resize function (minimize if-else)
add js to every page