fix js warning! REMEMBER TO UPDATE MAIN TEMPLATE