Add template back to js