fixing js stuff