Javascript enhanced