Implemented text stuff in JS