creates lib js for smartresize function