javascript attempts