split js and button template