painter with js