Modified linear js