Formatted js remove unnecessary